﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApplication1.Servicve
{
    public interface IAnimal2
    {
        void Show(string name);
        string Id { get; set; }
    }
    public class Dog : IAnimal2
    {
        public string Id { get { return Guid.NewGuid().ToString(); } set { } }
        private IData _data { get; set; }

        public Dog(IData data)
        {
            _data = data;
        }
        public void Show(string name)
        {
            var res = _data.Name;
            Console.WriteLine("狗狗说：" + name);
        }



    }
}